package com.ruoyi.door.utils.baofu.http;

import java.io.Serializable;

public class SimpleHttpResponse implements Serializable
{
	private static final long serialVersionUID = 1L;
	private int statusCode;
	private String entityString;
	private String errorMessage;

	public SimpleHttpResponse(int statusCode, String entityString, String errorMessage)
	{
		super();
		this.statusCode = statusCode;
		this.entityString = entityString;
		this.errorMessage = errorMessage;
	}

	/**
	 * 是否成功
	 * 
	 * @return
	 */
	public boolean isRequestSuccess() {
		return HttpUtil.isRequestSuccess(statusCode);
	}


	public int getStatusCode() {
		return statusCode;
	}
	public String getEntityString() {
		return entityString;
	}
	public String getErrorMessage() {
		return errorMessage;
	}

}
